﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FXC.SL.CS.ChartUtil
{
    public class ChartTheme
    {
        public SolidColorBrush BackgroundColor { get; set; }
        public SolidColorBrush ForegroundColor { get; set; }
        public SolidColorBrush GridColor { get; set; }
        public SolidColorBrush BarStrokeColor { get; set; }
        public SolidColorBrush BarFillColor { get; set; }
        public SolidColorBrush LineTypeColor { get; set; }
        public SolidColorBrush VolumeColor { get; set; }

        public ChartTheme()
        {
            BackgroundColor = App.Current.Resources["FXVChartDefaultBackgroundColor"] as SolidColorBrush;
            ForegroundColor = App.Current.Resources["FXVChartDefaultForegroundColor"] as SolidColorBrush;
            GridColor = App.Current.Resources["FXVChartDefaultGridColor"] as SolidColorBrush;
            BarStrokeColor = App.Current.Resources["FXVChartDefaultBarStrokeColor"] as SolidColorBrush;
            BarFillColor = App.Current.Resources["FXVChartDefaultBarFillColor"] as SolidColorBrush;
            LineTypeColor = App.Current.Resources["FXVChartDefaultLineTypeColor"] as SolidColorBrush;
            VolumeColor = App.Current.Resources["FXVChartDefaultVolumeColor"] as SolidColorBrush;
        }
    }
}
